﻿using Business.Entity.Vendas.Pedido.Mercearia;
using NHibernate.Criterion;

namespace Vendas.Reports
{
    public partial class RelVendas : DevExpress.XtraReports.UI.XtraReport
    {
        public RelVendas()
        {
            InitializeComponent();
            
        }

        private void Teste_DesignerLoaded(object sender, DevExpress.XtraReports.UserDesigner.DesignerLoadedEventArgs e)
        {
            
        }

        private void Teste_ParametersRequestSubmit(object sender, DevExpress.XtraReports.Parameters.ParametersRequestEventArgs e)
        {
            ICriterion ex= Restrictions.Between("DataPedido", DataInicial.Value, DataFinal.Value);
            bindingSource1.DataSource = MerceariaRepository.GetList(ex);
        }

    }
}
